package cn.itcast.service.impl;

import cn.itcast.dao.SecurityUserDao;
import cn.itcast.pojo.Menu;
import cn.itcast.pojo.User;
import cn.itcast.service.SecutityUserService;
import com.alibaba.dubbo.config.annotation.Service;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SecurityUserServiceImpl implements SecutityUserService {

    @Autowired
    private SecurityUserDao securityUserDao;

    @Override
    public User getUsername(String username) {

        return securityUserDao.getUsername(username);
    }

    @Override
    public Menu getMenuList() {
        return securityUserDao.getMenuList();
    }
}
